package com.exam.api.modules.exampaper.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.exam.api.common.cardRecognition.CardRecognitionResult;
import com.exam.api.modules.exampaper.domain.TblExamPaper;
import com.exam.api.modules.exampaper.dto.ExamPaperPageDto;
import com.exam.api.modules.exampaper.dto.ExamPaperSaveDto;
import com.exam.api.modules.exampaper.dto.PatchAnswerItemDto;
import com.exam.api.modules.exampaper.vo.ExamPaperVO;
import com.exam.api.modules.exampaper.vo.PageExamPaperVO;
import com.exam.api.modules.exampaper.vo.UserReviewAnswerVO;

import java.util.List;

/**
 * 试卷主表服务接口
 */
public interface TblExamPaperService extends IService<TblExamPaper> {
    public Long saveExamPaper(ExamPaperSaveDto dto);
    public IPage<PageExamPaperVO> pageExamPaper(ExamPaperPageDto examPaperPageDto);
    public ExamPaperVO getExamPaperVO(Long id);
    public Long patchAnswer( Long id, List<PatchAnswerItemDto> answerItemList);
    public CardRecognitionResult recognition(Long id, String url);
    public List<PageExamPaperVO> userExamPaperList();
    public UserReviewAnswerVO getReviewAnswer(Long id);
}